package com.ktgj.flight.mapper;

import java.util.List;

import com.ktgj.flight.domain.FlightOrderChange;
import com.ktgj.flight.domain.FlightRefundRequest;

/**
 * 退款申请Mapper接口
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
public interface FlightRefundRequestMapper 
{
    /**
     * 查询退款申请
     * 
     * @param refundRequestId 退款申请ID
     * @return 退款申请
     */
    public FlightRefundRequest selectFlightRefundRequestById(Long refundRequestId);

    /**
     * 查询退款申请列表
     * 
     * @param flightRefundRequest 退款申请
     * @return 退款申请集合
     */
    public List<FlightRefundRequest> selectFlightRefundRequestList(FlightRefundRequest flightRefundRequest);

    /**
     * 新增退款申请
     * 
     * @param flightRefundRequest 退款申请
     * @return 结果
     */
    public int insertFlightRefundRequest(FlightRefundRequest flightRefundRequest);

    /**
     * 修改退款申请
     * 
     * @param flightRefundRequest 退款申请
     * @return 结果
     */
    public int updateFlightRefundRequest(FlightRefundRequest flightRefundRequest);

    /**
     * 删除退款申请
     * 
     * @param refundRequestId 退款申请ID
     * @return 结果
     */
    public int deleteFlightRefundRequestById(Long refundRequestId);

    /**
     * 批量删除退款申请
     * 
     * @param refundRequestIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteFlightRefundRequestByIds(Long[] refundRequestIds);

    /**
     * 根据订单号获取退票申请
     * @param orderNo
     * @return
     */
    FlightOrderChange getFlightOrderChangeInfoByOrderNo(String orderNo);
}
